#include <head.h>


int main(int argc, char const *argv[])
{

    key_t key = ftok("./" , 'A');
    
    int shm = shmget( key , 4096  , IPC_CREAT | 0666);

    if(-1 == shm )
    {
        perror("shmget error:");
    }

    printf("共享内存 ID = %d \n" , shm);
    return 0;
}



